import request from '@/utils/request'

let CashApi = {
    /*首页概况*/
    index(data, errorback) {
        return request._post('/mall/cash.cash/index', data, errorback);
    },
    /*首页概况*/
    settled(data, errorback) {
        return request._post('/mall/cash.settled/index', data, errorback);
    },
    getSettledByDate(data, errorback) {
        return request._post('/mall/cash.settled/data', data, errorback);
    },
    /*订单结算*/
    order(data, errorback) {
        return request._post('/mall/cash.order/index', data, errorback);
    },
    /*订单结算详情*/
    orderDetail(data, errorback) {
        return request._post('/mall/cash.order/detail', data, errorback);
    },
    /*门店结算*/
    storeSettled(data, errorback) {
        return request._post('/mall/cash.settled/listStore', data, errorback);
    },
    //门店按日结算
    getStoreSettledByDate(data, errorback) {
        return request._post('/mall/cash.settled/storedata', data, errorback);
    },
    /*平台拼团结算*/
    platformSettled(data, errorback) {
        return request._post('/mall/cash.settled/assembleindex', data, errorback);
    },
    /* 店铺结算详情*/
    detail(data, errorback) {
        return request._post('/mall/cash.settled/assembleDetail', data, errorback);
    },
}

export default CashApi;
